package com.example.demo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

public class DeviceEntity {
    private int id = -1;
    //设备名称
    private String name = null;
    //设备编号
    private String number = null;
    //设备类型
    private String type = null;
    //供应商名称
    private String vendor = null;
    //出厂日期
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")//转换日期格式
    private String date = null;
    //质保期
    private String time = null;
    //售后联系人
    private String afterSales = null;
    //联系电话
    private String phone = null;
    //质保说明
    private String illustrate = null;
    //页面起始位置
    private int start;
    //每一面的数量
    private int limit;

    private int page;

    public DeviceEntity() {
    }

    public DeviceEntity(int id, String name, String number, String type, String vendor, String date, String time, String afterSales, String phone, String illustrate, int start, int limit, int page) {
        this.id = id;
        this.name = name;
        this.number = number;
        this.type = type;
        this.vendor = vendor;
        this.date = date;
        this.time = time;
        this.afterSales = afterSales;
        this.phone = phone;
        this.illustrate = illustrate;
        this.start = start;
        this.limit = limit;
        this.page = page;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getVendor() {
        return vendor;
    }

    public void setVendor(String vendor) {
        this.vendor = vendor;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getAfterSales() {
        return afterSales;
    }

    public void setAfterSales(String afterSales) {
        this.afterSales = afterSales;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getIllustrate() {
        return illustrate;
    }

    public void setIllustrate(String illustrate) {
        this.illustrate = illustrate;
    }

    public int getStart() {
        return start;
    }

    public void setStart(int start) {
        this.start = start;
    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    @Override
    public String toString() {
        return "DeviceEntity{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", number='" + number + '\'' +
                ", type='" + type + '\'' +
                ", vendor='" + vendor + '\'' +
                ", date='" + date + '\'' +
                ", time='" + time + '\'' +
                ", afterSales='" + afterSales + '\'' +
                ", phone='" + phone + '\'' +
                ", illustrate='" + illustrate + '\'' +
                '}';
    }
}
